F=cw

$F: $F.cpp
	g++ $^ -o $@

cw_n3: cw_n3.cpp
	g++ $^ -o $@

run: $F
	./$^

count: counts.dat
counts.dat: $F test.py
	./test.py -c

time: time_err.dat
time_err.dat: $F test.py
	./test.py -t

count_n3: counts_n3.dat
counts_n3.dat: cw_n3 test_n3.py
	./test_n3.py -c

time_n3: time_err_n3.dat
time_err_n3.dat: cw_n3 test_n3.py
	./test_n3.py -t


plot_count: counts.dat plot_counts
	./plot_counts
plot_time: time_err.dat plot_times
	./plot_times
plot_time_vs: time_err.dat time_err_n3.dat plot_times_vs
	./plot_times_vs
plot_time_n3: time_err_n3.dat plot_times_n3
	./plot_times_n3

clean:
	rm $F
